package com.dandandog.framework.auth.config;

import com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties;
import com.baomidou.mybatisplus.autoconfigure.MybatisPlusPropertiesCustomizer;

/**
 * @Author: JohnnyLiu
 * @Date: 2022/1/27 16:37
 */
public abstract class TypeEnumsPackageScanner implements MybatisPlusPropertiesCustomizer {

    @Override
    public void customize(MybatisPlusProperties properties) {
        properties.setTypeEnumsPackage(String.join(";", properties.getTypeEnumsPackage(), this.getTypeEnumsPackage()));
    }

    protected abstract String getTypeEnumsPackage();
}
